//
//  MemberAlertViewController.swift
//  funcode
//
//  Created by Wan Jiading on 2017/9/15.
//  Copyright © 2017年 WanJiading. All rights reserved.
//

import UIKit

class MemberAlertViewController: UIViewController, MemberAlertViewDelegate {

    override func viewDidLoad() {
        super.viewDidLoad()

        
    }
    
    override func touchesBegan(_ touches: Set<UITouch>, with event: UIEvent?) {
        super.touchesBegan(touches, with: event)
        
//        let view = MemberAlertView("title", "图片地址", ["取消", "确认"], delegate: self)
//        view.show()
        
//        let fv = FirstAlertView("呵呵😑呵呵")
//        fv.show()
        
        let model = MemberActivityModel()
        model.title = "会员1周年特惠"
        model.memberLeftTimeDesc = "您的金卡会员还有321天就到期啦!"
        model.wealDesc = "每天都会推出一首启蒙音频~"
        model.discountsLeftTimeDesc = "特惠价只剩10天哦!"
        model.buttonText = "我要续费"
        let v = MemberActivityAlertView(model)
        v.show()
    }
    
    func memberAlertView(_ memberAlertView: MemberAlertView, clickedButtonAtIndex buttonIndex: Int) {
        DebugLog(buttonIndex)
    }

}
